﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyProject.DAL.Users.IManager;
using MyProject.BLL;
using System.Data.Linq;

namespace MyProject.DAL.users.Manager
{
    public class UserManager:IUserManager
    {
        MyProjectDataContext db = new MyProjectDataContext();
        public IEnumerable<user> GetAll()
        {
            
            return db.users.orderBy( q => q.user_name);
        }

        public user GetById(int id)
        {
            throw new NotImplementedException();
        }

        public void Add(user user)
        {
            throw new NotImplementedException();
        }

        public void Delete(user user)
        {
            throw new NotImplementedException();
        }

        public void Delete(long userId)
        {
            throw new NotImplementedException();
        }

        public void Save(user user)
        {
            throw new NotImplementedException();
        }

        public IEnumerable<user> Find(string userNameContain, string fullNameContain, string emailContain, int groupId, int page, int size, out int total)
        {
            throw new NotImplementedException();
        }

        public user getByUserName(string Name)
        {
            throw new NotImplementedException();
        }

        public bool CheckUsername(string name)
        {
            throw new NotImplementedException();
        }

        public bool CheckEmail(string email)
        {
            throw new NotImplementedException();
        }

        public IEnumerable<user> Get(int page, int size, out int total)
        {
            throw new NotImplementedException();
        }
    }
}
